//app.js
App({
  onLaunch: function () {
    // 展示本地存储能力
    var logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)
  },
  onShow(options){
   
  },
  onHide(){
    console.log(`hide`)
  },
  onError(msg){
    console.log(`error:%o`,msg)
  },
  globalData: {
    const:{
       indexPage:'/pages/index/index'
    }
  }
})